﻿using System;
using System.Xml;
using System.Data;
using System.Collections.ObjectModel;
using SharePointSearchBench.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Net;
using System.Diagnostics;
using Microsoft.Office.Server.Search.Query;

namespace SharePointSearchBench.Tests
{
    [TestClass()]
    public class SearchPropertyTest
    {

        [TestMethod()]
        public void TestToString()
        {
            Search search = SearchTest.GetTestSearchObject();
            TestSearchBenchContext context = new TestSearchBenchContext(search);
            Collection<SearchProperty> properties = context.GetSearchProperties();

            foreach(SearchProperty property in properties)
            {
                Assert.AreEqual(property.Name, property.ToString());
            }

        }



    }
}
